export async function importJs(src: string) {
	return new Promise((resolve, reject) => {
		let script = document.createElement("script");
		script.src = src;
		script.onload = (event) => {
			resolve(event);
		};
		script.onerror = (event) => {
			reject(event);
		};
		document.head.appendChild(script);
	});
}
